fn: ||
[contents]
f++ :
n++ :
Contents
Syntax
The syntax for
||(params)
@||(params)
Description
Note: It is typically faster to use exprtk for logical operators, plus the syntax is nicer.
f++ example
Example of
int x=3, y=7 if(||(<(y, 1), <(x, y)) console("y is less than 1 or greater than x")
n++ example
Examples of
@int x=3, y=7 @if(||(<(y, 1), <(x, y)) @console("y is less than 1 or greater than x")
@int x=3, y=7 @console(@||(<(y, 1), <(x, y)))
int a=3, b=-2 @console("@||(@>(a, 0), @>(b, 0))") @# expected output: 1 @console("@!(@||(@>(a, 0), @>(b, 0)))") @# expected output: 0